package com.ruoyi.labdata.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 化学品使用对象 lab_chemical_use
 * 
 * @author winner pan
 * @date 2022-03-18
 */
public class LabChemicalUse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date useTime;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    /** 使用人 */
    @Excel(name = "使用人")
    private String userName;

    /** 采购明细id */
    private Long detailId;

    /** 可用数量 */
    @Excel(name = "可用数量")
    private BigDecimal availableNum;

    /** 使用数量 */
    @Excel(name = "使用数量")
    private BigDecimal useNum;
    
    private BigDecimal leftNum;
    
    private String labName;
    
    
    
    public BigDecimal getAvailableNum() {
		return availableNum;
	}

	public void setAvailableNum(BigDecimal availableNum) {
		this.availableNum = availableNum;
	}

	public BigDecimal getUseNum() {
		return useNum;
	}

	public void setUseNum(BigDecimal useNum) {
		this.useNum = useNum;
	}

	public BigDecimal getLeftNum() {
		return leftNum;
	}

	public void setLeftNum(BigDecimal leftNum) {
		this.leftNum = leftNum;
	}

	public String getLabName() {
		return labName;
	}

	public void setLabName(String labName) {
		this.labName = labName;
	}


	/** 用户姓名 */
    private String nickName;

    /** 用途 */
    @Excel(name = "用途")
    private String useFor;

    /** 余量存放处所 */
    @Excel(name = "余量存放处所")
    private Long labId;


    private  Long productId;

    private String materialName;

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUseTime(Date useTime) 
    {
        this.useTime = useTime;
    }

    public Date getUseTime() 
    {
        return useTime;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setDetailId(Long detailId) 
    {
        this.detailId = detailId;
    }

    public Long getDetailId() 
    {
        return detailId;
    }
  
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setUseFor(String useFor) 
    {
        this.useFor = useFor;
    }

    public String getUseFor() 
    {
        return useFor;
    }
    public void setLabId(Long labId) 
    {
        this.labId = labId;
    }

    public Long getLabId() 
    {
        return labId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("useTime", getUseTime())
            .append("note", getNote())
            .append("userName", getUserName())
            .append("detailId", getDetailId())
            .append("availableNum", getAvailableNum())
            .append("useNum", getUseNum())
            .append("nickName", getNickName())
            .append("useFor", getUseFor())
            .append("labId", getLabId())
            .toString();
    }
}
